package com.zzj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * <p>
 * 商品分类表
 * </p>
 *
 * @author zzj
 * @since 2022-12-07
 */
@TableName("mingli_product_category")
@Schema(name = "ProductCategory对象", description = "商品分类表")
public class ProductCategory implements Serializable {

  private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;

  @Schema(description = "上机分类编号：0表示一级分类")
  private Integer parentId;

  @Schema(description = "名称")
  private String name;

  @Schema(description = "分类级别： 0为1级；1为2级")
  private Integer level;

  @Schema(description = "分类商品数量")
  private Integer productCount;

  @Schema(description = "排序")
  private Integer sort;

  @Schema(description = "图标")
  private String icon;

  @Schema(description = "描述")
  private String description;

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Integer getParentId() {
    return parentId;
  }

  public void setParentId(Integer parentId) {
    this.parentId = parentId;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Integer getLevel() {
    return level;
  }

  public void setLevel(Integer level) {
    this.level = level;
  }

  public Integer getProductCount() {
    return productCount;
  }

  public void setProductCount(Integer productCount) {
    this.productCount = productCount;
  }

  public Integer getSort() {
    return sort;
  }

  public void setSort(Integer sort) {
    this.sort = sort;
  }

  public String getIcon() {
    return icon;
  }

  public void setIcon(String icon) {
    this.icon = icon;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  @Override
  public String toString() {
    return "ProductCategory{" +
        "id=" + id +
        ", parentId=" + parentId +
        ", name=" + name +
        ", level=" + level +
        ", productCount=" + productCount +
        ", sort=" + sort +
        ", icon=" + icon +
        ", description=" + description +
        "}";
  }
}
